require 'readbytes'
file = File.new( "PHP_Assignments.php" )
begin
  while bytes = file.readbytes(80)
     print bytes.gsub(/;/,";\r\n")
     print bytes.gsub(/>/,">\r\n")
     print bytes.gsub(/\{/,"\{\r\n")
     print bytes.gsub(/\}/,"\r\n\}")	
end
  rescue TruncatedDataError 
print $!.data.gsub(/;/,";\r\n")
print $!.data.gsub(/>/,">\r\n")
print $!.data.gsub(/\{/,"\{\r\n")
print $!.data.gsub(/\}/,"\r\n\}")
 ensure file.close unless file.nil?
end
